package wpmp.auth.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import wpmp.auth.dao.ButtonConfigDao;
import wpmp.utils.quickbean.ButtonConfig;

/**
 * @author Wayne.Wang<5waynewang@gmail.com>
 * @since 3:06:41 PM Dec 26, 2012
 */
@Component
public class ButtonConfigService extends BaseService {

	private ButtonConfigDao dao;

	public ButtonConfigDao getDao() {
		return dao;
	}

	@Autowired
	public void setDao(ButtonConfigDao dao) {
		this.dao = dao;
	}

	public ButtonConfig queryForObject(String key) {
		return dao.queryForObject(key);
	}

	public List<ButtonConfig> queryForList() {
		return dao.queryForList();
	}
}
